author profile image

Matt Reid

Solo Entrepreneur | Lead Software Architect

Using a standard relation database it is easy to update the value of a column with that of another using a simple update statement. This is not the case with mongodb, luckily you can perform a simple query to produce the same result. By looping through every matching element in...

If you have a node application with manually installed dependencies (using npm-install), you may want to generate a package.json file. Luckily there is a simple command for this, simply run npm init and follow the prompts.  

When working on a project using git for version control, it may be useful to be able to push changes to multiple remotes (for example heroku and github at once). Luckily it”s very simple. Edit .git/conf and add [remote "all"] url=ssh:[email protected]/* *//repos/g0.git url=ssh:[email protected]/* *//repos/g1.git replacing g0 and g1 with the...

Installing java 7 is a simple process in linux (debian etc). Follow these simple steps to get it installed. sudo su echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 apt-get update apt-get install oracle-java7-installer...

I have been blogging a lot about OpenShift recently because I’m finding it a really useful PaaS for rapid development. One issue that I have come across is connecting to mongodb on OpenShift using my local machine. Luckily, there is a really simple fix. Get the mongodb connection details using...